import time
# 实例34
# l=[1,2,3,4,5]
# a=','.join(str(i) for i in l)
# print(a)
# 实例35
# class bcolors:
#     HEADER = '\033[95m'
#     OKBLUE = '\033[94m'
#     OKGREEN = '\033[92m'
#     WARNING = '\033[93m'
#     FAIL = '\033[91m'
#     ENDC = '\033[0m'
#     BOLD = '\033[1m'
#     UNDERLINE = '\033[4m'
# print(bcolors.WARNING + "警告的颜色字体?" + bcolors.ENDC)
# 实例37
# a=[3,2,6,3,1,4,2,5,1]
# for i in range(len(a)):
#     for j in range(i+1):
#         if a[j]>a[i]:
#             a[i],a[j]=a[j],a[i]
# print(a)
# 实例39
# a=[1,2,3,4,5,6,7]
# l=0
# r=len(a)-1
# n=int(input())
# while l<r:
#     mid=(l+r)//2
#     if a[mid]>n:
#         r=mid-1
#     else:
#         l=mid
# a.insert(l,n)
# print(a)
# 实例61
# a=[[0 for _ in range(100)] for _ in range(100)]
# a[0][0]=1
# for i in range(1,100):
#     a[i][i]=1
#     a[i][0]=1
# for i in range(1,100):
#     for j in range(1,i):
#         a[i][j]=a[i-1][j-1]+a[i-1][j]
# for i in range(100):
#     for j in range(i+1):
#         print(a[i][j],end=' ')
#     print()
# 实例68
# 1 2 3 1 2 3
# a=[1,2,3]
# b=a*2
# n=int(input())
# ans=b[-n-len(a):-n]
# print(ans)
# 实例69约瑟夫环
# n=int(input())
# num=[i for i in range(1,n+1)]
# i=0
# k=0
# m=0
# while m<n-1:
#     if num[i]!=0: k+=1
#     if k==3:
#         num[i]=0
#         k=0
#         m+=1
#     i+=1
#     if i==n: i=0
# for i in num:
#     if i!=0:
#         print(i)
# 实例78
import datetime

# if __name__ == '__main__':
#     person = {"li": 18, "wang": 50, "zhang": 20, "sun": 22}
#     m = 'li'
#     for key in person.keys():
#         if person[m] < person[key]:
#             m = key
#     print ('%s,%d' % (m, person[m]))
# 实例80
# def is_valid(n):
#     # 模拟每只猴子分桃子的过程
#     for _ in range(5):
#         if (n - 1) % 5 != 0:
#             return False
#         n = (n - 1) // 5 * 4  # 拿走1份后剩下的
#     return True
#
# # 从1开始找，直到找到第一个满足条件的数
# n = 1
# while True:
#     if is_valid(n):
#         print(f"最少的桃子数是：{n}")
#         break
#     n += 1
# 实例82
# n=input()
# a=int(n,8)
# print(a)
# 实例92
start=time.time()
for i in range(1000000):
    print(i)
end=time.time()
print(end-start)
